<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>线路订单-{:C('site.sitename')}</title>
		<link rel="stylesheet" type="text/css" href="__USERS__/css/user_style.css" />
		<link rel="stylesheet" type="text/css" href="__USERS__/css/user_index.css" />
		<script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>	
	</head>
	<body>
		<!--顶部-->
		{include file="user/userheader" /}
		<!--User Start-->
		<div class="main">
			<!--左导航-->
			{include file="user/userltnav" /}

			<!--度假线路 Start-->
			<div class="uc-rigbox2">
				<div class="uc-title"><h3>线路订单</h3></div>
				{notempty name="list"}
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="uc-tab">
						<tr>
							<th width="15%">订单编号</th>
							<th class="left">产品信息</th>
							<th width="8%">订单金额</th>							
							<th width="13%">购买时间</th>
							<th width="8%">订单状态</th>
							<th width="6%">删除</th>
						</tr>
						{volist name='list' id='vo'}
							<tr id='t{$vo.id}'>
								<td><a href="{$vo.tours_url}">{$vo.order_id}</a></td>
								<td class="left"><a href="{$vo.tours_url}"><img src="{$vo.tours_image}" width="50" height="50"/>{$vo.title|msubstr=23}</a></td>
								<td width="8%" class="price"><span>¥ {$vo['insure_num']*$vo['insure_price']+$vo['adult']*$vo['adult_price']+$vo['child']*$vo['child_price']}</span></td>								
								<td><span class="date">{$vo.create_time|mdate}</span></td>
								<td>
									{switch name="vo.status"}
										{case value="0"}<a href="javascript:;" class="anniu daishouli">待受理</a>{/case}
										{case value="1"}<a href="javascript:;" class="anniu yishouli">已受理</a>{/case}
										{case value="2"}<a href="{:U('/line/onlinepay?orderid='.$vo['order_id'],'','',false,true)}" class="anniu yiqueren">去付款</a>{/case}
										{case value="3"}<a href="javascript:;" class="anniu yizhifu">已支付</a>{/case}
										{case value="4"}<a href="javascript:;" class="anniu yiwancheng">已完成</a>{/case}
										{case value="5"}<a href="javascript:;" class="anniu yiquxiao">已取消</a>{/case}
									{/switch}
								</td>
								<td><a href="javascript:;" id="{$vo.id}" class="del"  title="删除">删除</a></td>
							</tr>


						{/volist}
						{notempty name="page"}<tr><td colspan="6" class="pages">{$page}</td></tr>{/notempty}					
					</table>
					{else /}
					<div class="noinfo">您暂时没有未收货订单。<a href="{:C('site.siteurl')}">挑挑喜欢的商品去<font style="font-family: '宋体',Arial"> &gt;&gt;</font></a></div>  
				{/notempty}

			</div>
			<!--度假线路 End-->
			<div class="clear"></div>
		</div>
		<!--User End-->
		<!--footer-->
		{include file="user/userfooter" /}
		<script type="text/javascript">
			$(function () {
				//分页
				$('.pages a').click(function () {
					$.get($(this).attr('href'), function (data) {
						$('body').html(data);
					});
					return false;
				});
				//删除
				$(".del").click(function () {
					var self = $(this);
					var id = self.attr('id');
					$.ajax({
						url: "/user/orderline_del",
						data: {
							id: id
						},
						dataType: "json",
						type: "post",
						cache: false,
						success: function (data) {
							if (data.code == 1) {
								$('#t' + id).remove();
							}
						}
					});
				});
			});
		</script> 
	</body>
</html>